# shellcheck disable=SC2164
cd "$(dirname "$0")"
sh rm_docker_container.sh

image_name='m986883511/ocr:paddle'
dockerfile='../docker/Dockerfile'

docker build -f $dockerfile -t $image_name ..
# shellcheck disable=SC2181
if [ $? -eq 0 ];then
  echo "docker build $image_name success"
else
  echo "docker build $image_name failed"
  exit 1
fi
